package highlighter.ast.impl;

import highlighter.ast.IASTNode;
import highlighter.visitor.IASTVisitor;

public class ClassDef implements IASTNode {

	private Modifier modif;
	private Identifier id;
	private ClassBody body;
	private boolean isStatic;
	
	public ClassDef(Modifier m, Identifier i, ClassBody b, boolean st)
	{
		modif = m;
		id = i;
		body = b;
		isStatic = st;
	}
	
	public boolean isStatic() {
		return isStatic;
	}

	public Modifier getModif() {
		return modif;
	}

	public Identifier getId() {
		return id;
	}

	public ClassBody getClassBody() {
		return body;
	}
	
	@Override
	public Object accept(IASTVisitor visitor) {
		return visitor.visit(this);
	}

}
